﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Modeling.Diagrams;

namespace UofCASE.AgileProductLinerDSL {
    partial class FeaturePortShape {
        
        public override void OnMouseEnter(DiagramPointEventArgs e) {
            base.OnMouseEnter(e);
            ShowPreview();
        }

        public override void OnMouseLeave(DiagramPointEventArgs e) {
            base.OnMouseLeave(e);
            HidePreview();
        }

        public void ShowPreview() {
            foreach (LinkShape link in this.Link) {
                link.SetShowHideState(true);
            }
        }

        public void HidePreview() {
            foreach (TestConnector testCon in this.Link) {
                testCon.UpdateVisibility();
            }
        }
    }
}
